-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Add EKS handlers #1254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: jimmi/add-eks-external-api
Are you sure you want to change the base?
feat: Add EKS handlers #1254
Conversation
cdbbed1
to
c06c78a
Compare
d182347
to
5757828
Compare
c06c78a
to
b3e2485
Compare
5757828
to
2dd9539
Compare
b3e2485
to
3de1474
Compare
@@ -124,6 +125,10 @@ func main() { | |||
// It allows to specify configuration under a single variable. | |||
genericMetaHandlers := generic.New() | |||
|
|||
// eksMetaHandlers combines all EKS patch and variable handlers under a single handler. | |||
// It allows to specify configuration under a single variable. | |||
eksMetaHandlers := eks.New(globalOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we move this above the genericMetaHandlers
to group all provider handlers?
@@ -173,6 +178,7 @@ func main() { | |||
allHandlers = append(allHandlers, dockerMetaHandlers.AllHandlers(mgr)...) | |||
allHandlers = append(allHandlers, nutanixMetaHandlers.AllHandlers(mgr)...) | |||
allHandlers = append(allHandlers, genericMetaHandlers.AllHandlers(mgr)...) | |||
allHandlers = append(allHandlers, eksMetaHandlers.AllHandlers(mgr)...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: also this next to the other provider handlers
@@ -187,6 +192,13 @@ func (s GenericClusterConfig) VariableSchema() clusterv1.VariableSchema { //noli | |||
|
|||
// GenericClusterConfigSpec defines the desired state of GenericClusterConfig. | |||
type GenericClusterConfigSpec struct { | |||
GenericClusterConfigResource `json:",inline"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please clarify why this is changing
patchHandlers = append(patchHandlers, metaMutators()...) | ||
|
||
return mutation.NewMetaGeneratePatchesHandler( | ||
"eksClusterV1ConfigPatch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep the version consistent across all providers? There is only a single v3
folder with all other handlers, I think its going to get very complicated trying to maintain different versions.
"eksClusterV1ConfigPatch", | |
"eksClusterV4ConfigPatch", |
2dd9539
to
279c4bf
Compare
Reusing as much as possible of the AWS handlers, with slight tweaks.
f754dfa
to
c5dd8df
Compare
Reusing as much as possible of the AWS handlers, with slight tweaks.
What problem does this PR solve?:
Which issue(s) this PR fixes:
Fixes #
How Has This Been Tested?:
Special notes for your reviewer:
Requires #1253.